package com.njupt.towerssystem.services;


//单例模式
public class Mylock {
    private Mylock(){}
    private static Mylock ml;
    public static Mylock getInstance(){
        if(ml==null){
            ml=new Mylock();
        }
        return ml;
    }
}
